package baizhi.service.Impl;

import baizhi.dao.ClassesDao;
import baizhi.entity.Classes;
import baizhi.service.ClassesService;
import baizhi.util.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class ClassesServiceImpl implements ClassesService {
    @Override
    public List<Classes> selectAll() {
        SqlSession sqlSession = MyBatisUtils.openSession();
        ClassesDao dao = sqlSession.getMapper(ClassesDao.class);
        List<Classes> list = dao.selectAll();
        return list;
    }
}
